<?php 
class ControllerGalleryGallery extends Controller {
	public function index() {  
    	//$this->language->load('information/information');
		
		$this->load->model('gallery/gallery');
		$this->document->title ='Forhandlerliste';
		$this->document->breadcrumbs = array();
		
      	$this->document->breadcrumbs[] = array(
        	'href'      => HTTP_SERVER . 'index.php?route=common/home',
        	'text'      => $this->language->get('text_home'),
        	'separator' => FALSE
      	);
		
	/*	if (isset($this->request->get['information_id'])) {
			$information_id = $this->request->get['information_id'];
		} else {
			$information_id = 0;
		}*/
		
		$gallery = $this->model_gallery_gallery->getimages(6);
       
   	//	$gallery='abc';
		if ($gallery) {
	  	//	$this->document->title = $information_info['title']; 

      		$this->document->breadcrumbs[] = array(
        		'href'      => HTTP_SERVER . 'index.php?route=information/information&information_id=6',
        	//	'text'      => $information_info['title'],
        		'separator' => $this->language->get('text_separator')
      		);		
		/*				
      		$this->data['heading_title'] = $information_info['title'];
      		
      		$this->data['button_continue'] = $this->language->get('button_continue');
			
			$this->data['description'] = html_entity_decode($information_info['description']);*/
      		
			$this->data['gallery'] =$gallery;

			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/gallery/gallery.tpl')) {
				$this->template = $this->config->get('config_template') . '/template/gallery/gallery.tpl';
			} else {
				$this->template = 'default/template/information/information.tpl';
			}
			
			$this->children = array(
				'common/column_right',
				'common/footer',
				'common/column_left',
				'common/header'
			);		
			
	  		$this->response->setOutput($this->render(TRUE), $this->config->get('config_compression'));
    	} 
  	}
	

}
?>